package com.cjz.test;

import com.cjz.domain.User;
import org.codehaus.jackson.map.ObjectMapper;

import java.io.IOException;


public class Jackson {
  public static void main(String[] args) {
    //
      User user = new User("2018131910","2020","陈建圳","0");
    System.out.println(user.toString());
      ObjectMapper mapper = new ObjectMapper();
      try {
          mapper.writeValue(System.out,user);
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
}
